package com.wmm.fast.main.shop2Facade;

/**
 * 外观模式...对分散的子系统做一个集中管理
 * @Auther: Token360
 * @Date: 2018/9/10 10:53
 * @Description:
 */
public class Facade {

    private SubSystemA subSystemA;
    private SubSystemB subSystemB;
    private SubSystemC subSystemC;

    public Facade() {
        this.subSystemA = new SubSystemA();
        this.subSystemB = new SubSystemB();
        this.subSystemC = new SubSystemC();
    }
    public void subSystemA() {
        subSystemA.execute();
    }


    public void subSystemB() {
        subSystemB.execute();
    }

    public void subSystemC() {
        subSystemC.execute();
    }
}
